<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>
    <body>
        <div id="content">
            <?php echo $content; ?>
        </div>
        <script>
            $(function(){
                $("body").css('background-color','#EEE');
                adjustPage();
                function adjustPage(){
                    var height = $(window).height();
                    $("#content").css('margin-top', ((height-700)/2)+'px');
                }
                $(window)
                .scroll(adjustPage)
                .resize(adjustPage)
                .trigger(adjustPage)
            });
        </script>
    </body>
</html>
